IModel.SetInitField method

Namespace: NextDesign.Core

Description

Sets the designated value of this instance to the initial value of the field defined in the metamodel. If you have not specified an initial value for the field in the metamodel, set the default value for the field type.

If you call this method on an owned field of a class type, the IModel set as the field value will be deleted. Also, if this method is called for a reference field of class type, the association with the IModel that was set as the field value is deleted (the IModel of the field value is not deleted and is maintained).

argument

Name Type Description
fieldName string Field name
Null or empty string cannot be specified.

Return value

  • void

Exception

Name Exception Class Description
Invalid argument ExtensionArgumentException When null or empty string is specified in fieldName
Field not found ExtensionFieldNotFoundException If the specified field is not found in this instance's metaclass
Illegal operation ExtensionInvalidOperationException If the model itself is a deleted model or temporary proxy
If an inoperable field is specified in the field name
-Product line feature assignment field
-System.Core tag Assigned field